<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet"  th:href="${#request.getContextPath()+'/layui/css/layui.css'}">
</head>
<body>
<center>
    <h1>用户注册</h1>
    <form  th:action="${#request.getContextPath()+'/add'}" method="post">
            <input name="name" placeholder="用户名" required lay-verify="required" autocomplete="off"  class="layui-input" style="width: 20%"><br>
            <input name="password" placeholder="密码" required lay-verify="required" autocomplete="off"  class="layui-input" style="width: 20%"><br>
            <label>
                <input name="role_id" type="radio" value="1">乘客
            </label>
            <label>
                <input name="role_id" type="radio" value="2">司机
            </label>
            <button type="submit"  class="layui-btn layui-btn-primary layui-border-blue">注册</button>
        </form>
</center>
</body>
</html>